<layout name="layout"/>
<link rel="stylesheet" href="{$Think.const.ADMIN_CSS}/user-lst.css">
<script src="{$Think.const.ADMIN_js}/user-lst.js"></script>
<div class="col-sm-12 col-md-12 col-lg-12 " style="margin-top: 10px;" >
    <a href="__CONTROLLER__/add"><h4>添加用户 <span class="glyphicon glyphicon-plus"></span></h4></a>
</div>
<div class="col-sm-12 col-md-12 col-lg-12 userall" >
<table border="1" bordercolor="#a0c6e5" style="border-collapse:collapse;" class="tab1" >
    <tr>
        <th>编号</th>
        <th>帐号</th>
        <th>称呼</th>
        <th>类型</th>
        <th>操作</th>
    </tr>
    <?php $flag=0;?>
    <foreach name="users.list" item="val">
        <?php $flag++;?>
        <tr>
            <td><?php echo $flag;?></td>
            <td>{$val.account}</td>
            <td>{$val.realname}</td>
            <td>
                <?php if($val['admin']=='common'){?>
                    管理员
                <?php }else{ ?>
                普通用户
                <?php } ?>
            </td>
            <td><a href="">编辑</a>  <a href=""> 删除</a></td>
        </tr>
    </foreach>
</table>
<!-- 分页开始 -->
<table class="tab2" cellspacing="0" style="margin: auto;width: 300px;margin-top: 20px;">
    <tr>
        <td id="showpg" align="center" nowrap="true" style="width: 300px;">
            {$users.show}
        </td>
    </tr>
</table>
</div>
<!-- 分页结束 -->
